package fileModel;

import org.hibernate.Session;

public class TagSession {
	
	private Session session = null;
	 public TagSession(Session session) {
	  if(session == null)
	    throw new 
	      RuntimeException("Invalid session object.");
	  this.session = session;
	 }
	 public void saveTag(TagObj tagObj){
	  session.save(tagObj);
	 }
	 public void updateTag(TagObj tagObj){
	  session.update(tagObj);
	 }
	 public void deleteTag(TagObj tagObj) {
	  session.delete(tagObj);
	 }
	 
}
